# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=telepathy-idle
pkgver=0.2.0
pkgrel=0
pkgdesc="telepathy-idle is a connection manager for the IRC protocol."
url="http://telepathy.freedesktop.org"
arch="all"
license="LGPL-2.1-or-later"
makedepends="telepathy-glib-dev glib-dev dbus-dev dbus-glib-dev libxslt
	python3"
options="!check" # Needs py2-dbus
subpackages="$pkgname-doc"
source="http://telepathy.freedesktop.org/releases/telepathy-idle/telepathy-idle-$pkgver.tar.gz
	python3.patch"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="f5e36afc3ab4b52eb865f2c1e6565b99011a7540fc1a7783d3bbd7bbf50bc671a2147df6bde646c82059a466cc1df9bdb10e2500db5b7bb06d57a989a75c261b  telepathy-idle-0.2.0.tar.gz
c0a22ee03d93e3bc6ab2e4155615771315e38d845ea1a4a60ea095c5cab8872db036e2d74a0aeb0ecbfdaf9f3a22c6a300a241683e69bde51ef5667b0e69aef2  python3.patch"
